﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ITAP.ShprossesBuilder.Editor;
using ITAP.ShprossesBuilder.Properties;

namespace ITAP.ShprossesBuilder.Operations
{
    public class OperationShprossSnapsVisibleSwitcher : IOperation
    {
        #region IOperation Members

        public string Name
        {
            get { return "Включить/выключить зацепки для профилей"; }
        }

        public OperationGroup OperationGroup
        {
            get { return OperationGroup.ShprossOperation; }
        }

        public System.Drawing.Image Thumbnail
        {
            get { return Resources.EnableDisableSnaps.ToBitmap(); }
        }

        public void Execute(ModelControl modelControl)
        {
            GlobalPreferences.Preferences.ShowShprossSnaps = !GlobalPreferences.Preferences.ShowShprossSnaps;
        }

        #endregion

        #region IOperation Members


        public bool CanUndo
        {
            get { return false; }
        }

        #endregion
    }
}
